<template>
  <div class="app-container">
  <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
    <el-form-item label="店铺" prop="shopId">
      <el-input v-model="queryParams.shopName" placeholder="请输入店铺" clearable @keyup.enter.native="handleQuery"/>
    </el-form-item>
    <el-form-item label="状态" prop="status">
      <el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
        <el-option label="待服务" value="WAIT" />
        <el-option label="取消" value="CANCEL" />
        <el-option label="待支付" value="UNPAID" />
        <el-option label="服务完" value="FINISH" />
        <el-option label="服务中" value="BASRBERING" />
        <el-option label="过号" value="TIMEOUT" />
      </el-select>
    </el-form-item>
    <el-form-item label="理发师" prop="nickName">
      <el-input v-model="queryParams.nickName" placeholder="请输入理发师" clearable @keyup.enter.native="handleQuery"/>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
      <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
    </el-form-item>
  </el-form>

    <el-table v-loading="loading" :data="statistics">
      <el-table-column label="店铺" align="center" prop="shopName" />
      <el-table-column label="理发师" align="center" prop="nickName" />
      <el-table-column label="金额" align="center" prop="money" />
    </el-table>
  </div>
</template>
<script>

import { appointmentStatics } from "@/api/lfd/appointment";

export default {
  name: "Appstatistics",
  components: {
  },
  data() {
    return {
      // 选中选项卡的 name
      activeName: "cloum",
      // 显示搜索条件
      showSearch: true,
      // 表格的高度
      tableHeight: document.documentElement.scrollHeight - 245 + "px",
      // 表信息
      // 表列信息
      statistics: [],
      queryParams: {
        shopName: null,
        nickName: null,
        status: null,
        money: null,
      },
    };
  },
  created() {
    appointmentStatics("").then(res => {
        this.statistics = res.data;
      });

  },
  methods: {

  },
  mounted() {

  }
};
</script>
